package com.nova.scenic.projectlibs.util.view;

import android.app.Activity;
import android.content.Context;

import android.util.AttributeSet;
import android.util.Log;
import android.widget.ListView;

/**
 * Created by scenic on 16/4/19.
 */
public class CatchExceptionListView extends ListView{


    public CatchExceptionListView(Context context) {
        super(context);
    }

    public CatchExceptionListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public CatchExceptionListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }





    protected void layoutChildren(){

        try {
            super.layoutChildren();
        }catch (Exception e){
            Log.e("CatchExceptionListView","layout children error " + e.toString());

            Context context = getContext();
            if(context instanceof Activity){

            }
        }

    }
}
